package com.ctshk.rpc.ship.entity.es;

import com.ctshk.common.constant.ElasticSearchConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

/**
 * @Description
 * @Author wansi <gaylen15527491065@yeah.net>
 * @Date 2021/6/4
 */
@Data
@ApiModel("船票码头主数据")
@Document(indexName = ElasticSearchConstant.SHIP_INDEX)
public class ShipRouteData implements Serializable {

    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty("城市ID")
    @Field(type = FieldType.Keyword)
    private Long dCityId;

    @ApiModelProperty("城市名称")
    @Field(type = FieldType.Keyword)
    private String cityName;

    @ApiModelProperty(value = "船公司类型(1 信德船票，2 珠江船票)")
    @Field(type = FieldType.Keyword)
    private Long companyType;

    @ApiModelProperty(value = "出发地ID")
    @Field(type = FieldType.Long)
    private Long depPlaceId;

    @ApiModelProperty(value = "出发地CODE")
    @Field(type = FieldType.Keyword)
    private String depPlaceCode;

    @ApiModelProperty("出发地名称")
    @Field(type = FieldType.Keyword)
    private String depPlaceName;
}
